<?php

/** @var \Laravel\Lumen\Routing\Router $router */

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$router->group(['prefix' => 'agency','namespace' => 'Agency'], function () use ($router) {
    $router->post('index', 'IndexController@index');

    $router->post('login', 'AuthController@login');
    $router->get('refreshToken', 'AuthController@refreshToken');
});


$router->group(['prefix' => 'agency','middleware' => 'auth:agency','namespace' => 'Agency'], function () use ($router) {

    $router->post('memberList', 'MemberController@memberList');
    $router->get('memberHeadList', 'MemberController@memberHeadList');
    $router->post('memberHeadUpdate', 'MemberController@memberHeadUpdate');
    $router->post('memberAllot', 'MemberController@memberAllot');
    $router->post('memberDel', 'MemberController@memberDel');
    $router->post('memberDrop', 'MemberController@memberDrop');
    $router->post('memberInfo', 'MemberController@memberInfo');
    $router->post('getFollows', 'MemberController@getFollows');
    $router->post('memberGenderUpdate', 'MemberController@memberGenderUpdate');
    $router->post('memberUsernameUpdate', 'MemberController@memberUsernameUpdate');
    $router->post('memberWinxinUpdate', 'MemberController@memberWinxinUpdate');
    $router->post('memberIsHiddenUpdate', 'MemberController@memberIsHiddenUpdate');
    $router->post('memberIntentionUpdate', 'MemberController@memberIntentionUpdate');
    $router->post('memberStatusUpdate', 'MemberController@memberStatusUpdate');
    $router->post('memberBelongIdUpdate', 'MemberController@memberBelongIdUpdate');
    $router->post('memberServiceIdUpdate', 'MemberController@memberServiceIdUpdate');
    $router->post('memberUpdate', 'MemberController@memberUpdate');
    $router->post('memberIntroStatusUpdate', 'MemberController@memberIntroStatusUpdate');
    $router->get('getFollowTemplate', 'MemberController@getFollowTemplate');
    $router->post('memberFollowSave', 'MemberController@memberFollowSave');
    $router->post('memberFollowDel', 'MemberController@memberFollowDel');
    $router->post('memberFollowAnnexSave', 'MemberController@memberFollowAnnexSave');
    $router->post('memberFollowAnnexDel', 'MemberController@memberFollowAnnexDel');
    $router->post('getMemberCond', 'MemberController@getMemberCond');
    $router->post('memberCondUpdate', 'MemberController@memberCondUpdate');
    $router->post('getMemberPhoto', 'MemberController@getMemberPhoto');
    $router->post('memberPhotoInsert', 'MemberController@memberPhotoInsert');
    $router->post('memberPhotoStatusUpdate', 'MemberController@memberPhotoStatusUpdate');
    $router->post('memberPhotoDel', 'MemberController@memberPhotoDel');
    $router->post('memberInteractList', 'MemberController@memberInteractList');
    $router->post('memberMate', 'MemberController@memberMate');
    $router->post('memberMatchSave', 'MemberController@memberMatchSave');
    $router->post('memberSupperManage', 'MemberController@memberSupperManage');

    $router->post('seasList', 'SeasController@seasList');
    $router->post('seasDraw', 'SeasController@seasDraw');
    $router->get('seasHeadList', 'SeasController@seasHeadList');
    $router->post('seasHeadUpdate', 'SeasController@seasHeadUpdate');

    $router->post('slipStatusUpdate', 'SlipController@slipStatusUpdate');


    $router->post('followTemplate', 'FollowController@followTemplate');
    $router->post('followTemplateInsert', 'FollowController@followTemplateInsert');
    $router->post('followTemplateUpdate', 'FollowController@followTemplateUpdate');
    $router->post('followTemplateDel', 'FollowController@followTemplateDel');

    $router->post('followsLog', 'LogController@followsLog');
    $router->post('rotatesLog', 'LogController@rotatesLog');
    $router->post('allotLog', 'LogController@allotLog');
    $router->post('deleteLog', 'LogController@deleteLog');

    $router->get('baseInfo', 'ExamineController@baseInfo');
    $router->post('checkData', 'ExamineController@checkData');
    $router->post('dataStatusUpdate', 'ExamineController@dataStatusUpdate');
    $router->post('checkAvatar', 'ExamineController@checkAvatar');
    $router->post('avatarStatusUpdate', 'ExamineController@avatarStatusUpdate');
    $router->post('checkPhoto', 'ExamineController@checkPhoto');
    $router->post('photoStatusUpdate', 'ExamineController@photoStatusUpdate');
    $router->post('checkIntro', 'ExamineController@checkIntro');
    $router->post('infoStatusUpdate', 'ExamineController@infoStatusUpdate');

    $router->post('realAuthList', 'RealController@realAuthList');
    $router->post('realAuthStatusUpdate', 'RealController@realAuthStatusUpdate');
    $router->post('eduAuthList', 'EduController@eduAuthList');
    $router->post('eduAuthStatusUpdate', 'EduController@eduAuthStatusUpdate');
    $router->post('houseAuthList', 'HouseController@houseAuthList');
    $router->post('houseAuthStatusUpdate', 'HouseController@houseAuthStatusUpdate');
    $router->post('carAuthList', 'CarController@carAuthList');
    $router->post('carAuthStatusUpdate', 'CarController@carAuthStatusUpdate');
    $router->post('singleAuthList', 'SingleController@singleAuthList');
    $router->post('singleAuthStatusUpdate', 'SingleController@singleAuthStatusUpdate');

    $router->post('reportList', 'ReportController@reportList');
    $router->post('reportStatusUpdate', 'ReportController@reportStatusUpdate');
    $router->post('reportDel', 'ReportController@reportDel');

    $router->post('memberLog', 'MemberLogController@memberLog');
    $router->post('memberLogDel', 'MemberLogController@memberLogDel');

    $router->get('getSlipBase', 'SlipController@getSlipBase');
    $router->post('slipBaseUpdate', 'SlipController@slipBaseUpdate');
    $router->get('getSlipTemplate', 'SlipController@getSlipTemplate');
    $router->post('slipTemplateSave', 'SlipController@slipTemplateSave');
    $router->post('slipTemplateDel', 'SlipController@slipTemplateDel');
    $router->post('slipTemplateStatusUpdate', 'SlipController@slipTemplateStatusUpdate');
    $router->post('slipTemplateOrderUpdate', 'SlipController@slipTemplateOrderUpdate');
    $router->post('getSlipList', 'SlipController@getSlipList');

    $router->post('getVisitList', 'InteractController@getVisitList');
    $router->post('visitDel', 'InteractController@visitDel');
    $router->post('getCareList', 'InteractController@getCareList');
    $router->post('careDel', 'InteractController@careDel');


    $router->post('getDynamicList', 'DynamicController@getDynamicList');
    $router->post('dynamicStatusUpdate', 'DynamicController@dynamicStatusUpdate');
    $router->post('dynamicDel', 'DynamicController@dynamicDel');
    $router->post('getCommentList', 'DynamicController@getCommentList');
    $router->post('commentStatusUpdate', 'DynamicController@commentStatusUpdate');
    $router->post('commentDel', 'DynamicController@commentDel');
    $router->post('getDynamicZanList', 'DynamicController@getDynamicZanList');

    $router->post('getGiftRecord', 'GiftController@getGiftRecord');
    $router->post('getGiftList', 'GiftController@getGiftList');
    $router->post('giftUpdate', 'GiftController@giftUpdate');
    $router->post('giftDel', 'GiftController@giftDel');

    $router->post('getCrowdList', 'CrowdController@getCrowdList');
    $router->post('crowdUpdate', 'CrowdController@crowdUpdate');
    $router->post('crowdDel', 'CrowdController@crowdDel');
    $router->post('crowdIsopenUpdate', 'CrowdController@crowdIsopenUpdate');
    $router->post('getCrowdApplyList', 'CrowdController@getCrowdApplyList');
    $router->post('crowdApplyStatusUpdate', 'CrowdController@crowdApplyStatusUpdate');

    $router->post('getWallList', 'WallController@getWallList');
    $router->post('wallUpdate', 'WallController@wallUpdate');
    $router->post('wallDel', 'WallController@wallDel');


    $router->post('memberServiceOrder', 'MemberController@memberServiceOrder');
    $router->post('orderList', 'OrderController@orderList');
    $router->post('checkOrder', 'OrderController@checkOrder');
    $router->post('createOrder', 'OrderController@createOrder');

    $router->post('createContract', 'ContractController@createContract');

    $router->post('lineApplyStatusUpdate', 'LineController@lineApplyStatusUpdate');
    $router->post('lineApplyList', 'LineController@lineApplyList');
    $router->post('lineApplyDel', 'LineController@lineApplyDel');
    $router->post('lineList', 'LineController@lineList');
    $router->post('lineUpdate', 'LineController@lineUpdate');
    $router->post('lineStatusUpdate', 'LineController@lineStatusUpdate');

    $router->post('meetStatusUpdate', 'MeetController@meetStatusUpdate');
    $router->post('meetOrderList', 'MeetController@meetOrderList');
    $router->post('searchMember', 'MeetController@searchMember');
    $router->post('timesChecked', 'MeetController@timesChecked');
    $router->post('createMeetOrder', 'MeetController@createMeetOrder');


    $router->get('getProductList', 'ProductController@getProductList');
    $router->post('productList', 'ProductController@productList');
    $router->post('productStatusUpdate', 'ProductController@productStatusUpdate');
    $router->post('productUpdate', 'ProductController@productUpdate');


    $router->get('userAuth', 'UserController@userAuth');
    $router->get('logout', 'AuthController@logout');
    $router->get('menuList', 'MenuController@menuList');
    $router->get('districtTree', 'CommonController@districtTree');
    $router->post('upload', 'CommonController@upload');
    $router->post('fileAdd', 'CommonController@fileAdd');
    $router->post('fileDel', 'CommonController@fileDel');
    $router->get('getParams', 'CommonController@getParams');

    $router->post('getUserList', 'UserController@getUserList');
    $router->post('userList', 'UserController@userList');
    $router->post('userAdd', 'UserController@userAdd');
    $router->post('userDel', 'UserController@userDel');

    $router->post('getRoleList', 'RoleController@getRoleList');
    $router->post('roleList', 'RoleController@roleList');
    $router->post('roleAdd', 'RoleController@roleAdd');
    $router->post('roleDel', 'RoleController@roleDel');
    $router->post('getPermission', 'RoleController@getPermission');

    $router->get('agencyAuthList', 'SystemController@agencyAuthList');
    $router->post('agencyAuthAdd', 'SystemController@agencyAuthAdd');

    $router->get('getVipList', 'FrontConfigController@getVipList');


});

$router->group(['prefix' => 'agency','namespace' => 'Agency'], function () use ($router) {

    //所有异步通知放在这里
    $router->post('agencyAuthNotify', 'SystemController@agencyAuthNotify');

});


